package com.stu.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.stu.common.entity.Classes;
import com.stu.common.service.ClassesService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ClassesController {
    @Reference
    private ClassesService classesService;

    @RequestMapping("/getClasses")
    public List<Classes> getClasses(){
        return classesService.findAll();
    }
}
